import {createSlice} from "@reduxjs/toolkit"

const test =createSlice({
    name:"test",
    initialState:{
        hair:5,
    },
    reducers:{
        addition(state){
            state.hair++;
        },
        subtraction(state){
            state.hair--;
        }
    }
})

const {addition,subtraction} = test.actions;

export {addition,subtraction};

export default test.reducer